import Layout from "@/layout";
import levels from "@/views/levels";

const globalRouter = {
    path: "/global/system/config",
    component: Layout,
    redirect: "noRedirect",
    name: "global",
    alwaysShow: true,
    meta: {
        title: "全局管理",
        abbre: "全局",
        icon: "left_menu_global",
        navigation: "/global",
        id: "407"
    },
    children: [{
            path: "/global/admin",
            component: () =>
                import ("@/views/global/globalAdmin"),
            name: "global_Admin",
            hidden: false,
            meta: {
                title: "管理员",
                noCache: true,
                navigation: "/global/admin",
                icon: "menu_big_data"
            }
        },
        {
            path: "/global/role",
            component: () =>
                import ("@/views/global/globalRole"),
            name: "global_role",
            hidden: false,
            meta: {
                title: "角色管理",
                noCache: false,
                navigation: "/global/role",
                icon: "menu_big_data"
            }
        },
        {
            path: "/global/grant/:id",
            component: () =>
                import ("@/views/global/globalGrant"),
            name: "global_grant",
            hidden: true,
            meta: {
                title: "授权",
                bread: "角色管理,授权",
                noCache: true,
                navigation: "/global/role",
                icon: "menu_big_data"
            }
        },
        // {
        //   path: "/global/release",
        //   component: () => import("@/views/global/globalRelease"),
        //   name: "global_release",
        //   hidden: false,
        //   meta: {
        //     title: "药残发布",
        //     noCache: true,
        //     navigation: "/global/release",
        //     icon: "menu_big_data"
        //   }
        // },
        {
            path: "/global/operation",
            component: () =>
                import ("@/views/global/globalOperation"),
            name: "global_operation",
            hidden: false,
            meta: {
                title: "操作日志",
                noCache: true,
                navigation: "/global/operation",
                icon: "menu_big_data"
            }
        },
        {
            path: "/global/delivery",
            component: () =>
                import ("@/views/global/globalDelivery"),
            name: "global_delivery",
            hidden: false,
            meta: {
                title: "配送时间",
                noCache: true,
                navigation: "/global/delivery",
                icon: "menu_big_data"
            }
        },
        {
            path: "/global/recycle",
            component: () =>
                import ("@/views/global/globalRecycle"),
            name: "global_recycle",
            hidden: false,
            meta: {
                title: "回收站",
                noCache: true,
                navigation: "/global/recycle",
                icon: "menu_big_data"
            }
        },
        {
            path: "/global/init",
            component: () =>
                import ("@/views/global/globalinit"),
            name: "global_init",
            hidden: false,
            meta: {
                title: "系统还原",
                noCache: true,
                navigation: "/global/init",
                icon: "menu_big_data"
            }
        }
    ]
};

export default globalRouter;